package com.vn.ducktohome.screen.play;

import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.vn.ducktohome.gamelogic.GameControl;
import com.vn.ducktohome.helper.MyInput;
import com.vn.ducktohome.helper.SoundManager;

public class Lake extends Group {
	public static int X = 260;
	public static int W = 540;
	
	public static int X_CENTER = 255;
	public static int Y_CENTER = 210;

	private DuckGroup duckGroup;
	private LacosteGroup lacosteGroup;
	
	public static boolean isTouch = false;

	public Lake() {
		super();
		setX(X);
		setWidth(W);
		setHeight(480);

		lacosteGroup = new LacosteGroup();
		duckGroup = new DuckGroup(lacosteGroup);
		
		addActor(lacosteGroup);
		addActor(duckGroup);
		
		isTouch = false;
		
		this.addListener(new ClickListener(){

			@Override
			public boolean touchDown(InputEvent event, float x, float y,
					int pointer, int button) {
				isTouch = true;
				return super.touchDown(event, x, y, pointer, button);
			}
		});
	}

	@Override
	public void act(float delta) {
		super.act(delta);
	}
}